package com.lu.pojo;

import java.io.Serializable;
import java.util.Date;

public class User {
    private int uid;            // 用户编号
    private String uname;       // 用户名称

    private String upassword;   //用户密码

    private double balance; // 余额

    private int utype;       // 用户类型 0 管理员 1 普通用户

    private String createdBy;   // 创建人

    private Date createdTime;   // 创建时间

    private String updatedBy;   // 更新人

    private Date updatedTime;   // 更新时间

    public User() {
    }


    public User(String uname, String upassword) {
        this.uname = uname;
        this.upassword = upassword;
    }

    public User(int uid, String uname, String upassword) {
        this.uid = uid;
        this.uname = uname;
        this.upassword = upassword;
    }

    public User(int uid, String uname, String upassword, int utype) {
        this.uid = uid;
        this.uname = uname;
        this.upassword = upassword;
        this.utype = utype;
    }

    public int getUid() {
        return this.uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getUname() {
        return this.uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUpassword() {
        return this.upassword;
    }

    public void setUpassword(String upassword) {
        this.upassword = upassword;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public int getUtype() {
        return this.utype;
    }

    public void setUtype(int utype) {
        this.utype = utype;
    }

    public String getCreatedBy() {
        return this.createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedTime() {
        return this.createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getUpdatedBy() {
        return this.updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public Date getUpdatedTime() {
        return this.updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }
}